// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,2) == 0;
	question = "special";
	text1 = "You enter the Kratoa Stoneworks. It is cold, musty, and still. The floor is covered with dust and dead, dry lichen. The only sound is the distant echo of air passing through the stone halls. Perhaps some of the old ventilation tunnels are still open.";
	text2 = "The entry chamber is where huge piles of raw stone were brought, to be evaluated and sorted. Then they were taken off to be worked into cauldrons, shells, and the occasional golem.";
	text3 = "You look around for any signs that someone has been in here recently. There is nothing. You start to have the unpleasant suspicion that you're wasting your time.";
	action = SET_SDF 36 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,3) == 0;
	question = "special";
	text1 = "You walk among the large piles of granite blocks. They had just been dumped here when the complex was Barred. Everyone had to leave, and all of the tools and materials were just left behind.";
	text2 = "As you look around, you notice something on the floor. A scuff. As if someone's heel scraped away some of the layer of dust and debris. It's faint, but you don't think it's just your imagination.";
	action = SET_SDF 36 3 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,4) == 0;
	question = "special";
	text1 = "You freeze. There is something to the south. A huge, lumpy, humanoid figure. You look more carefully and manage to make out the faint glow of its eyes.";
	text2 = "It is the remains of a golem.";
	text3 = "Golems are rare, remarkably hardy servants of the Shapers. They are very difficult to make. First, the stone shell has to be carefully formed. Then the creation that lives inside has to be Shaped.";
	text4 = "If this powerful, delicate creature is made successfully, it is then put into the shell, another long and difficult process. If failure is somehow avoided, the resulting creature is nearly immune to the elements and will live for a very long time.";
	text5 = "As you admire, from a safe distance, the shells of these creatures, you get an unpleasant surprise. One of them slowly turns its head, scanning for intruders. Somehow, these golems are alive. And, if you get close, they might think you an intruder.";
	action = SET_SDF 36 4 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,5) == 0;
	question = "special";
	text1 = "There are several work tables here. They still bear tools and awkwardly shaped pieces of raw stone.";
	text2 = "This is a carving room, where serviles and humans spent many painstaking hours carving the stone to exacting Shaper specifications. You can't just plop a servant mind in any basin or box. It has to be fit to the creature exactly.";
	text3 = "The floor here bears many recent tracks. Huge, round footprints, entering from the passage to the south, crossing the room, and then going back. A handful of golems have been on patrol.";
	action = SET_SDF 36 5 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,6) == 0;
	question = "special";
	text1 = "Despite its age, you can still sense the power in this room. This is one of the chambers where the golem creation was Shaped and placed into the stone shell. The Stoneworks must have been a major source of the creatures.";
	text2 = "There are two golems in the northern alcove. They stand perfectly still, and the shells are sealed up. They must have had creations put inside before the complex was sealed.";
	text3 = "The creatures are perfectly still, but their eyes glow with a dim light. You are impressed by the longevity of these highly enchanted creatures. It is not immediately clear if they can still move or not.";
	action = SET_SDF 36 6 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,7) == 0;
	question = "special";
	text1 = "Much of the power for this complex comes from the network of narrow tunnels. The conduits are active. While they were doubtless shut down when the Stoneworks was abandoned, someone recently turned them back on.";
	text2 = "It is very hot. The pads of stones on the floor glow with molten heat. Stepping on an active one would be very, very dangerous.";
	action = SET_SDF 36 7 1;
	code =
		sf(34,22,2);
		print_str_color("You have successfully escaped the core!",2);
		award_party_xp(150,15);
	break;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,8) == 0;
	question = "special";
	text1 = "Sometimes, for a stone or crystal to be worked or purified, it needs to be heated to a very high temperature. That is, no doubt, what the ovens here are for.";
	text2 = "The floor here has been swept clear, and you can detect the smell of fresh smoke in the air. Someone has been working here recently.";
	text3 = "You suspect that you are getting close to the intruder.";
	action = SET_SDF 36 8 1;


begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,9) == 0 && gf(36,1) == 0;
	question = "special";
	text1 = "You enter the final chamber in the complex. What you see is startling. There is a magical circle, flanked by glowing crystals. A golem stands in the center.";
	text2 = "It is unlike any of the others you have seen. It is old. It is made of pitch-black basalt. It is huge, and heat and power radiate off of it. And something else. A presence. This is not a mindless creature.";
	text3 = "You can feel its emotions pouring off of it in waves. It is angry. It has been trapped in here for many years, and it is full of loathing. For mortals. For Shapers. And, really, for anyone it can reach.";
	text4 = "Though it must be able to see you, it just stands still. Perhaps it is waiting for you to approach.";
	action = SET_SDF 36 9 1;


begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = get_sdf(36,10) == 0;
	question = "special";
	text1 = "You stop moving. What you see in here gives you pause.";
	text2 = "This is the power core of the Stoneworks. Two huge crystal spires are connected to the conduits. They are still, all these years later, full of stored magical energy.";
	text3 = "To explore farther, you will need to pass through the core. You can see two closed doors. If there are intruders here, however, entering this chamber might make you very vulnerable ...";
	action = SET_SDF 36 10 1;



begintalknode 10; // ladder
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You climb the ladder, only to find a trapdoor at the top. You push on it, but it refuses to open.";
	text2 = "Looking closely, you see a small glowing green rune by one edge. An enchantment is holding the thing shut. Until something happens to weaken it, it is doubtful that you'll be able to open the trapdoor.";


begintalknode 11; // journal 1
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The pedestal bears the burned scraps of a notebook. Someone struck it with a bolt of flame many years ago, and decades of moisture have ruined most of what remains. Only a small section of the final entry is still legible:";
	text2 = "_I have warned Asher. Repeatedly. His work, even if it was productive, which it isn't, is forbidden. It is going to bring the wrath of the Shapers down._";
	text3 = "That is all you can read.";
	
	
begintalknode 12; // journal 2
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The pedestal bears the moldy remains of a lab journal. Most of the pages have been rendered unreadable by wet and mold. Other pages have been carefully removed. An inscription inside the front cover says that this book belonged to _Guardian Asher._";
	text2 = "You do find one small, interesting section ...";
	text3 = "_The binding is close. I tried and tried and failed. It is draining. It pulls me far away. There have been injuries. But, soon, one will be Bound in the stone shell._";
	text4 = "_The Shapers. I feel myself drifting farther away every day. I will complete the binding. It will make a great servant._";
	
begintalknode 13; // craft book
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Though this lab journal is very old, the small amount of writing in it is very recent. It says, simply ...";
	text2 = "_Worth investigating later. Can use power of glaahk eye or vlish tentacle to bind power in a wand. Finely chopped wiry moss needed to bind energy. Make sure gem is high quality. Or boom._";
	text3 = "_More important things to do first._";

	
begintalknode 14; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "When you get close to the golem, its head rotates slowly toward you. The dim light in its eyes suddenly becomes much brighter.";
	text2 = "Remarkable creatures. Despite the decades of neglect in the darkness, they still have enough energy to move and function. You would love to admire them further, but their attempting to kill you might be a bit of a distraction.";
	
begintalknode 15; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The golem following you stops moving for a moment. Suddenly, a spasm wracks its body. Bits of stone chips rain off its chest. It begins lurching around the room, waving around its arms and bumping into the walls.";
	text2 = "They live a long time, the golems, but not forever. This creature has overexerted itself. It is beyond your help now.";
	
begintalknode 16; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Any fears you might have had about the power core are very suddenly justified.";	
	text2 = "You hear a click from the door behind you. Then a second slab of stone drops out of the ceiling, landing between you and the door. It completely seals you inside. An old mechanism for emergencies, no doubt.";
	text3 = "Then you hear a little, squeaking noise. It comes from the two control creatures next to the power conduits. Power starts to flow through them, passing through the machine in the center of the room.";
	text4 = "At first, the machine is able to cope with the flow of power through its old assembly of metal and crystals. However, the amount of energy is increasing. If nothing is done, the thing will have to start releasing its power somewhere ...";
	code =
		sf(34,22,1);
		sf(34,23,0);
		sf(34,24,5);
		sf(34,25,5);
		sf(34,26,14);
		kill_object(18,1);
		set_terrain(37,23,2);
	break;
	
begintalknode 17; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear an ominous sound coming from behind the western door. Even over the sound of the machinery, you can tell what it is. The scratching of claws on stone.";
	text2 = "The western door starts to open very slowly, trying to let something nasty into the room. The lever next to the door is also moving slowly from one setting to the other.";
	
begintalknode 18; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine the lever. It looks like the control for this door. Alas, it is locked. You examine it, trying to figure out a way to get it to move. You aren't able to make any progress, though. You can spend more time working on it later.";	
	text2 = "You examine the lever. It looks like the control for this door. Alas, it is locked. You examine it, trying to figure out a way to get it to move.";
	text3 = "You locate a seam in the metal case at the base. This might be a way to reach the mechanism.";
	text4 = "With a combination of cunning and brute force, you manage to get the case open. It reveals an alarming tangle of gears, wheels, and chains.";
	text5 = "You search through the tangled machinery, looking for the right thing to pull to get the door open. No luck yet.";
	text6 = "At last, you find the correct chain to pull. You give it a tug. The door to the south starts to slowly open!";
	text7 = "You examine the lever. It is still locked in place, but you managed to get the door unlocked without pulling it.";
	code =
		clear_strings();
		if ((gf(34,22) == 0) || (gf(34,23) > 0))
			as(1);
			else if (gf(36,25) > 0)
				as(7);
				else {
					inc_flag(34,27,1);
					as(2);
					if (gf(34,27) == 1)
						as(3);
					if (gf(34,27) == 2)
						as(4);
					if (gf(34,27) == 3)
						as(5);
					if (gf(34,27) == 4)
						as(5);
					if (gf(34,27) == 5)
						as(5);
					if (gf(34,27) == 6) {
						as(6);
						sf(36,25,1);
						}
					if (get_stat(21) < 7)
						sf(34,23,4);
						else sf(34,23,3);
					}
	break;
	
begintalknode 19; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This control creature is dormant. You poke at it a bit, but nothing happens.";
	text2 = "There is no power running through the conduit at its base. Maybe it would become active if there were.";
	text3 = "You fiddle with the control creature, trying to get it to slow the flow of power into the central machine.";
	text4 = "Through trial and error, you are able to slow down the power flow. It immediately begins to slowly increase, controlled by whoever trapped you in here. You've bought yourself a little more time, though. Maybe later you can slow the flow more.";
	text5 = "You soon find that the power flow is already as low as you can get it. It is also still slowly increasing.";
	code =
		clear_strings();
		if (gf(34,22) != 1) {
			as(1); as(2);
			}
			else if (gf(34,24) == 5) {
				as(3); as(5);
				}
				else {
				as(3); as(4);
				sf(34,24,5);
				}
	break;
	
begintalknode 20; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This control creature is dormant. You poke at it a bit, but nothing happens.";
	text2 = "There is no power running through the conduit at its base. Maybe it would become active if there were.";
	text3 = "You fiddle with the control creature, trying to get it to slow the flow of power into the central machine. The controls are balky and complex.";
	text4 = "Through trial and error, you are able to slow down the power flow. It immediately begins to slowly increase, controlled by whoever trapped you in here. You've bought yourself a little more time, though. Maybe later you can slow the flow more.";
	text5 = "Fortunately, you know enough about machinery to handle the difficult controls. You slow the power flow more than you might have otherwise.";
	text6 = "You soon find that the power flow is already as low as you can get it. It is also still slowly increasing.";
	code =
		clear_strings();
		if (gf(34,22) != 1) {
			as(1); as(2);
			}
			else if (gf(34,25) == 5) {
				as(3); as(6);
				}
				else {
				as(3); as(4);
				sf(34,25,3);
				if (get_stat(21) >= 6) {
					as(5);
					sf(34,25,5);
					}
				}
	break;
	
begintalknode 21; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This lever is locked in position. You can't budge it. There is a large pair of gears at its base, but they are stuck too.";	
	text2 = "The lever is locked in position. The door next to it is open and will stay that way.";
	text3 = "The lever is slowly moving from one side to the other. You grab it and try to stop it from moving, but you can't summon up enough force to budge it.";
	text4 = "There is a pair of large gears at the base. You aren't able to figure out a way to stop them from turning. The force behind them is just too great.";
	text5 = "There is a pair of large gears at the base. You grab a rock from the nearby pile of rubble and wedge it between them. You manage to slow the lever down. In turn, the door stops opening.";
	text6 = "The stone almost immediately starts to crack. This is only a temporary solution.";
	code =
		clear_strings();
		if ((gf(34,22) != 1) || (gf(34,26) > 5)) {
			as(1);
			}
			else if (gf(34,26) == 0)
				as(2);
				else {
					as(3);
					if (get_stat(21) >= 8) {
						as(5); as(6);
						sf(34,26,5);
						}
						else as(4);
					}
	break;
	
begintalknode 22; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The western door opens far enough for the creatures behind it to leap into the room. They are a pack of snarling, hissing roamers, recently created.";	
	
begintalknode 23; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You examine the machine in the center of the room. It is a large metal shell, full of crystals and metal protrusions. The metal prongs sticking out look a lot like lightning rods.";
	text2 = "The device is dark and dormant, and you find no controls for it. There's nothing you can do.";
	text3 = "You soon realize that they aren't really lightning rods. They have the opposite job. They siphon off and shoot out any excess power in the conduits, preventing it from damaging delicate machinery anywhere else.";
	text4 = "There is nothing you can do to this machine to keep that from happening. You have to cut off the power somewhere else.";
	code =
		clear_strings();
		as(1);
		if (gf(34,22) != 1) {
			as(2);
			}
			else {
				as(3); as(4);
				}
	break;
	
begintalknode 24; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "";	
	
begintalknode 25; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "";	
	
begintalknode 26; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "";	
	
begintalknode 27; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "";	



//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "Someone steps out of the shadows behind the strange, black golem. You immediately recognize him as Guardian Makar. His sword is out. At first, you think that he might have found a way to come in here and help you.";
	text2 = "Then he stands next to the golem, and you realize that this may not be the case.";
	text3 = "_So, you survived to this point. I am disappointed, but not surprised. I suspected that your freakish augmentations would protect you._";
	code =
		sf(36,13,1);
	break;
	
begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "How did you get in here?";
	text1 = "_I used my private entrance, of course. I am a full Shaper. The Stoneworks being Barred does not stop me, not if I truly want to enter._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Hooray! You have managed to come in here and help me! Now we can destroy this creature and hunt for the assassins together!";
	text1 = "Guardian Makar blinks a few times, stunned. _Truly, your optimism is admirable and encompassing. It is a pity that you are doomed to such disappointment._";

begintalknode 33;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "What are you doing here?";
	text1 = "_A good question. I have slipped down here so that I can kill you. Once you are dead, I can begin the preparation for personally killing Astoria. I have relied on fools and outsiders long enough._";
	text2 = "_I was sentimental. I thought that I could keep from having another Shaper's blood on my hands. It is not to be._";

begintalknode 34;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "So you sent Baston to kill her?";
	text1 = "_Of course. And I was a fool. He was an accomplished assassin, but he was an outsider._";
	text2 = "_Being near a Shaper unnerved him. He made mistakes. He panicked. And he got the death he deserved. Once I have lured Astoria here, I will make no such mistakes._";

begintalknode 35;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Why are you telling me all this?";
	text1 = "_For my own amusement. After all the indignities Astoria has heaped upon the honor of the Shapers, she sends you to do our work. You. A creature. A misshapen thing. You should be destroyed, not trusted._";
	text2 = "_You will be destroyed. By me. And, after all I have suffered over the last few years, can you begrudge me for taking full enjoyment of a rare pleasure?_";

begintalknode 36;
	state = 31;
	nextstate = 32;
	condition = 1;
	question = "Why do you want to kill Astoria?";
	text1 = "_Because no other is brave enough to! Do you know what she wants to do? Make peace with the rebels! Cede land to them! Allow them, the rogues and thieves of our skills, to continue to exist!_";
	text2 = "_She wants to, by herself, completely uproot all of the laws that have sustained us for centuries. For that, she will die._";

begintalknode 37;
	state = 32;
	nextstate = 33;
	condition = 1;
	question = "Are you sure? Perhaps she is stronger than you think.";
	text1 = "_Astoria is powerful. But then I will ask her to come here. I will tell her that I have discovered that you were plotting to assassinate her. I will confess that I am unable to fully question you and ask for her help._";
	text2 = "_She was already planning to come here and inspect the defenses. She will arrive at Kratoa-Kel within days. She will be surrounded by my creations._";
	text3 = "He pats the black golem on the arm. _And then, with extra help from my new servants, she will be destroyed. I will be hunted down and killed, of course, but I am willing to pay that price for the honor of the Shapers._";

begintalknode 38;
	state = 33;
	nextstate = 34;
	condition = 1;
	question = "What is that thing?";
	text1 = "_It is the reason the Stoneworks were Barred. It is a golem with a certain ... diabolical spirit bound within it. The Guardian who did it fled when his crime was discovered._";
	text2 = "_Supposedly, he went to the mountains to the southeast. He was never heard from again. But this creature was left behind. It is unstable. When it unleashes its full power, it will not last for long._";
	text3 = "_But then, it only needs to kill one target. All I need to do is master my control of it._";

begintalknode 39;
	state = 34;
	nextstate = -1;
	condition = 1;
	question = "And how will you do that?";
	text1 = "_Practice, of course._ You start to respond, but he shakes his head. _No. Enough talk. I find my pleasure fades, replaced by a desire to get this ugly work done._";
	text2 = "He raises his hands and concentrates. _Yes. The ... What? ... What are you? You are ... Bound ... Bound One. Yesssss ... Go. Kill. Let's see what you can do._";
	text3 = "The golem stirs to life. Makar's control is still imperfect. It lumbers awkwardly toward you. Its power will only increase over time ...";
	action = END_TALK;

begintalknode 43;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Small cracks appear in the golem's side. At first, you think that your blows are affecting it. Then you have the grim realization that this is part of the creature's design.";
	text2 = "Thick, foul green gas starts to slowly seep out of the cracks. A wisp of it touches your skin ... and burns. The foulness within the beast is being allowed to leak out.";

begintalknode 44;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "As the golem continues to exert itself, it starts to grow more unstable. It lurches about more quickly. You can sense its rage and confusion. Makar is having a difficult time controlling it.";
	text2 = "He says, _I will have to take a hand in this task. Fair enough. Fighting while controlling the golem will be excellent practice._";
	text3 = "Makar's face is covered with sweat, and his voice seems distant. He is controlling not only the golem but the host of creations defending Kratoa-Kel. He has little essence left to deal with you.";
	text4 = "Alas, his sword requires no extra magical energy to function.";

begintalknode 45;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Makar expends a final burst of essence. A host of small, writhing creations joins you in the cavern. He is now controlling as many creations as even his considerable skill can handle.";

begintalknode 46;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The golem stumbles. For a moment, the pain and anger you sense fades away, replaced only by a sense of confusion. It looks around, unsure who is friend and who is foe.";
	text2 = "You take the opportunity. You match Makar's concentration with your own, attempting to take control of the golem. By the time your foe realizes what you are doing, it is too late.";
	text3 = "The golem sees you as its leader. It slowly turns and advances on its former master.";
	text4 = "You take this opportunity and match Makar's concentration with your own. You attempt to take control of the golem. Sadly, your will is weaker than his. He soon regains control.";
	code =
		if (get_stat(20) < 8) {
			rs(2); rs(3);
			}
			else {
				rs(4);
				set_attitude(38,3);
				}
	break;
	
begintalknode 47;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The effort the golem has been expending overwhelms it. It goes completely rogue, lashing out in all directions.";
	text2 = "The vile gas pours out of its side at an increased rate. The creature is now pumping its dark life force into the air in a mad desire to kill everything it sees.";


begintalknode 48;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Guardian Makar collapses to the ground, mortally wounded. His sword falls to the ground with a clang. He painfully crawls his way over to a wall and leans against it.";
	text2 = "He looks up at you with disgust. _You monster. You warped thing. You cannot live ... forever. The Shapers will crush ... Crush all traitors. You will ... Will ..._";
	text3 = "His hands fall limp at his side. He closes his eyes. Then he dies calmly, with dignity. In battle. It is the sort of fate all Guardians aspire to.";
	text5 = "You see that Makar has a short, polished wooden baton hanging from his belt. It is an insignia of some kind. You take it. It might be able to control the doors that lead in and out of the complex.";


begintalknode 49;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

// door control

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "This control panel has several buttons. They used to be labeled, but the writing has long since faded.";

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Press the buttons.";
	text1 = "You jab at the buttons. The control creature slowly rouses itself from its long hibernation.";
	text2 = "Eventually, you get it to make a little clicky humming noise. Nothing else happens.";
	text3 = "Alas, you can't get anything else to happen.";
	action = END_TALK;
	code =
		if (gf(36,23) == 0) {
			sf(36,23,1);
			rs(3);
			}
			else rs(2);
	break;
	
begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Leave the controls alone.";
	text1 = "Unlabeled controls? In a place like this? You keep a safe distance.";
	action = END_TALK;

// golems 1

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "This control creature controls the flow of power through the conduits to the platforms in the northern alcove. Fortunately, enough power has remained in the system to keep the creature alive.";
	text2 = "However, the northern platforms are empty. There is nothing else to do here.";
	text3 = "You look at the golems to the north. They look like they were almost completed and then abandoned. Perhaps, with care, you might be able to reactivate them.";
	text4 = "What they will do once alive is another question.";
	code =
		if (gf(36,11) == 0)
			rs(2);
			else {
				rs(3); rs(4);
				}
	break;

begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = gf(36,11) == 0 && get_stat(21) < 7;
	question = "Attempt to revive the golems.";
	text1 = "You play with the controls, trying to summon up a flow of energy and direct it into the golems.";
	text2 = "You have limited success. You get them to twitch and jump amusingly, but you are unable to revive them.";	
	action = END_TALK;

begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = gf(36,11) == 0 && get_stat(21) >= 7;
	question = "Attempt to revive the golems.";
	text1 = "You play with the controls, trying to summon up a flow of energy and direct it into the golems. Despite their age, the controls function properly. Good, quality Shaper workmanship.";
	text2 = "You build up a charge of power and then direct it through the conduits into the golems. Their eyes glow. The creatures slowly come to life.";
	text3 = "As they stumble off the platforms, the creations within gain consciousness. They look around, confused and scared. When they see you, they try to comprehend what is happening.";
	text4 = "You hold your hands wide and try to calm the creatures. Unfortunately, their years in stasis have left them unhinged. You are unable to control them.";
	text5 = "You hold your hands wide and try to calm the creatures. Although years in stasis have left them unhinged, the power of your presence reassures them. They lumber toward you calmly, eager to be given a task.";
	action = END_TALK;
	code =
		if (get_stat(20) < 6) {
			rs(5);
			sf(36,11,1);
			set_attitude(12,10);
			set_attitude(13,10);
			set_name(12,"Maddened Golem");
			set_name(13,"Maddened Golem");
			}
			else {
				rs(4);
				sf(36,11,2);
				award_party_xp(100,15);
				set_attitude(12,3);
				set_attitude(13,3);
				set_name(12,"Servant Golem");
				set_name(13,"Servant Golem");
				}
	break;
	
begintalknode 113;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "Leave the controls alone.";
	text1 = "You back away.";
	action = END_TALK;
	
// golems 2

begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "This control creature controls the flow of power through the conduits to the platforms in the northern alcove. Fortunately, enough power has remained in the system to keep the creature alive.";
	text2 = "However, the northern platforms are empty. There is nothing else to do here.";
	text3 = "You look at the golems to the north. They look like they were almost completed and then abandoned. Perhaps, with care, you might be able to reactivate them.";
	text4 = "What they will do once alive is another question.";
	code =
		if (gf(36,12) == 0)
			rs(2);
			else {
				rs(3); rs(4);
				}
	break;

begintalknode 131;
	state = 130;
	nextstate = -1;
	condition = gf(36,12) == 0 && get_stat(21) < 7;
	question = "Attempt to revive the golems.";
	text1 = "You play with the controls, trying to summon up a flow of energy and direct it into the golems.";
	text2 = "You have limited success. You get them to twitch and jump amusingly, but you are unable to revive them.";	
	action = END_TALK;

begintalknode 132;
	state = 130;
	nextstate = -1;
	condition = gf(36,12) == 0 && get_stat(21) >= 7;
	question = "Attempt to revive the golems.";
	text1 = "You play with the controls, trying to summon up a flow of energy and direct it into the golems. Despite their age, the controls function properly. Good, quality Shaper workmanship.";
	text2 = "You build up a charge of power and then direct it through the conduits into the golems. Their eyes glow. The creatures slowly come to life.";
	text3 = "As they stumble off the platforms, the creations within gain consciousness. They look around, confused and scared. When they see you, they try to comprehend what is happening.";
	text4 = "You hold your hands wide and try to calm the creatures. Unfortunately, their years in stasis have left them unhinged. You are unable to control them.";
	text5 = "You hold your hands wide and try to calm the creatures. Although years in stasis have left them unhinged, the power of your presence reassures them. They lumber toward you calmly, eager to be given a task.";
	action = END_TALK;
	code =
		if (get_stat(20) < 6) {
			rs(5);
			sf(36,12,1);
			set_attitude(18,10);
			set_attitude(19,10);
			set_name(18,"Maddened Golem");
			set_name(19,"Maddened Golem");
			}
			else {
				rs(4);
				sf(36,12,2);
				award_party_xp(100,15);
				set_attitude(18,3);
				set_attitude(19,3);
				set_name(18,"Servant Golem");
				set_name(19,"Servant Golem");
				}
	break;
	
begintalknode 133;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "Leave the controls alone.";
	text1 = "You back away.";
	action = END_TALK;
	